<?php
namespace app\common\validate;

use think\Validate;

class ProjectValidate extends Validate
{
    protected $rule =   [
        'id'                   => 'require|integer',
        'user_id|用户ID'       => 'require|integer',
        'project_id|项目ID'    => 'require|integer',
    ];
    
    protected $scene = [
        /** 接口 */
        'list'      => ['user_id'],
        'bind'      => ['user_id', 'project_id'],
    ];
}